
    var el = 'body';
    var addLay = null,updateLay = null;

    function edit(id) {

        getHtmlByUrl({
            url: "/industry_edit.html?id=" + id,
            success: function (res) {
                if (res.status == 'ERROR') {
                    layer.msg(res.message);
                } else {
                    updateLay = layer.open({
                        type: 1,
                        title: '',
                        area: ['620px', '360px'],
                        content: res,
                        btn: ['确定', '取消'],
                        btn1: function () {
                            var dataparam = {
                                "id": id,
                                "industryName": $("#industryName").val()
                            };
                            ajaxCommonFun({
                                type: 'POST',
                                url: '/updateUserInfo.do',
                                data: dataparam,
                                success: function (t) {
                                    if (t.status == 'ERROR') {
                                        layer.msg(t.message);
                                    } else {
                                        //renderPages(true);
                                        layer.close(updateLay);
                                        layer.msg(t.result);
                                    }
                                }
                            });
                        }
                    });
                }
            },
        });
    }
